OBJ=$(patsubst %.c, %.o, $(wildcard *.c))

CFLAGS += -g -Wall -D_DEBUG
LDLIBS += -levent -llua

all : lua_server_host

lua_server_host : $(OBJ)
	cc -o $@ $^ $(LDLIBS) 

.PHONY : clean tag distclean

tag : 
	ctags -R /usr/include/ /data/usr/include/ ./

clean :
	@rm -vf *.o

distclean : clean
	@rm -vf lua_server_host
